<%@ page contentType="text/html; charset=UTF-8"%>
<%@include file="../../common/taglibs.jsp"%>

<script type="text/javascript">
    $(document).ready(function () {
        /**
         * 进行校核绑定
         */
        $('#billDetailEditForm input').each(function () {
            if ($(this).attr('required') || $(this).attr('validType')) {
                $(this).validatebox();
            }
        });

        $('#formBillDetailbutton').click(function() {
            if (!$("#billDetailEditForm").form('validate')) {
                return;
            }

            //提交表单
            saveAjaxData("${ctx}/billDetail/save.do", "billDetailEditForm", "billDetailWindow", "billDetailGrid");
        });

		 $("#editTable tr:odd").addClass("cssline_1");
    });
</script>

<div>
    <form:form id="billDetailEditForm" name="billDetailEditForm" action="${ctx}/billDetail/save.do" method="post">
	<input type="hidden" name="id" value="${bean.id}" />
        <div>
            <table border="0" cellspacing="1" width="100%" id="editTable">

                <tr class="cssline">
                    <td  class="csslabel">
                        帐单号:
                    </td>
                    <td  class="container">
                        <input type="text" name="account" value="${bean.account}" />&nbsp;
                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        支付金额:
                    </td>
                    <td  class="container">
                        <input type="text" name="amount" value="${bean.amount}" />&nbsp;
                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        支付日期:
                    </td>
                    <td  class="container">
						<input type="text" name="payDate" class="Wdate" value="${bean.payDate}" onFocus="WdatePicker({isShowClear:false,readOnly:true})"/>&nbsp;

                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        记账日期:
                    </td>
                    <td  class="container">
						<input type="text" name="handDate" class="Wdate" value="${bean.handDate}" onFocus="WdatePicker({isShowClear:false,readOnly:true})"/>&nbsp;

                    </td>
                </tr>
                <tr class="cssline">
                    <td  class="csslabel">
                        经手人:
                    </td>
                    <td  class="container">
                        <input type="text" name="handler" value="${bean.handler}" />&nbsp;
                    </td>
                </tr>
                <tr>
                    <td colspan="2" valign="middle" align="center">
                        <input type="button" id="formBillDetailbutton" value="确定" class="btn_Ok">&nbsp;
                        <input type="button" value="取消" class="btn_Del" onclick="closeWindow('billDetailWindow')">
                    </td>
                </tr>
            </table>
      
        </div>
    </form:form>
</div>